package com.hgkj.cloud.base.dao;


import com.hgkj.cloud.base.domain.TenantPsychologicalCaseWarning;

import java.util.List;
import java.util.Map;

public interface TenantPsychologicalCaseWarningMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TenantPsychologicalCaseWarning record);

    int insertSelective(TenantPsychologicalCaseWarning record);

    TenantPsychologicalCaseWarning selectByPrimaryKey(Long id);

    TenantPsychologicalCaseWarning selectByPrimaryCounselingId(Long CounselingId);

    int updateByPrimaryKeySelective(TenantPsychologicalCaseWarning record);

    int updateByPrimaryKey(TenantPsychologicalCaseWarning record);

    List<Map<String, Object>> getWarningList(Map<String, Object> map);

    long getWarningListCount(Map<String, Object> map);

    Map<String, Object> statWarningStatus(Map<String, Object> map);

    Double getAverageProcessCycle(Map<String, Object> map);

    List<Map<String,Object>> getUserWarning(Map<String, Object> map);

    Long getUserWarningCount(Map<String, Object> map);

    Long getAllUserWarningCount(Map<String, Object> map);
}